package msu.ml.tools.birdminer;

import msu.ml.core.*;
import java.util.*;

public class AutoSweepProvider implements ISweepProvider
{
   private IDataSource source;
   private String [] names;

   public AutoSweepProvider(IDataSource source)
   {
      this.source = source;
      this.names = source.getVolumeNames();
   }

   public int count()
   {
      return this.source.volumeCount();
   }

   public NxInstances get(int i)
   {
      return this.source.getSweepForVolume(this.names[i]);
   }

   public String getName(int i)
   {
      return this.names[i];
   }
}
